let defaultState = {
  baseInfoList: []
}

export default (state=defaultState, action)=> {
  let newState = JSON.parse(JSON.stringify(state))
  switch(action.type) {
    case 'getBaseInfo': 
      newState.baseInfoList = action.value
      console.log(newState)
      return newState
    default:
      return state
  }
}